/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */

import type { MaSearchItem } from '@mineadmin/search'
import MaDictSelect from '@/components/ma-dict-picker/ma-dict-select.vue'
import MaDictRadio from '@/components/ma-dict-picker/ma-dict-radio.vue'
import { attractionStatus, infoGroup } from '$/attractions/attraction-management/views/attractionInfo/data/common.tsx'

export default function getSearchItems(t: any): MaSearchItem[] {
    return [
        { label: '标题', prop: 'title', render: 'input', renderProps: { placeholder: '请输入标题关键词' } },
        { label: '信息分组', prop: 'group', render: () => MaDictSelect, renderProps: { placeholder: '请选择信息分组', data: infoGroup } },
        { label: '显示状态', prop: 'status', render: () => MaDictSelect, renderProps: { placeholder: '请选择显示状态', data: attractionStatus } },
  ]
}
